function commentSubmit() {
document.cform.action='http://blog.home.blogbus.com/front/4344005/comments/46796393/item';
document.cform.target='_self';
document.cform.login.value='1';
document.cform.submit();
}
function checkcmt(obj) {
if (obj.content.value=='') {
 alert('评论内容为必填项');
 document.getElementById('submit_comment').disabled=false;
 return false;
}
}
function anoy(){
$('#fs_login').hide();
$('#remember_box').show('fast');
$('#fs_nologin').show('fast');
document.cform.action='http://blog.home.blogbus.com/front/4344005/comments/46796393/item';
}
function login() {
$('#fs_nologin').hide();
$('#remember_box').hide();
$('#fs_login').show('fast');
document.cform.action='http://passport.blogbus.com/login?passport=1&app=blogbus&goto=http%3A%2F%2Fhome.blogbus.com%2Fpassport%3F_pspt%3D1%26_data%3D%5Bdata%5D%26_sign%3D%5Bsign%5D%26forward%3Dhttp%253A%252F%252F%252Fpassport.html%26return%3D1&once=0492e7565407b543&sign=o6jAyYy.vD587j8S.GagjA&return=1';
}
$('#commentForm').html("<h2>\u53d1\u8868\u8bc4\u8bba<\/h2>\r\n<a name=\"cmt_form\"><\/a>\r\n<form method=\"post\" name=\"cform\" action=\"\" onsubmit=\"return check_cmt(this);\" target=\"login_form\" >\r\n<fieldset style=\"margin:0;padding:0;border:none;display:none;\" id=\"fs_nologin\">\r\n<div><label for=\"cname\">\u59d3\u3000\u540d<\/label><input class=\"textField\" id=\"cname\" name=\"cname\" type=\"text\" \/>\r\n<span style=\"color:#ccc;margin-left:5px;\" class=\"emailnotice\"><a href=\"#\" title=\"\u767b\u5f55\u540e\u8bc4\u8bba\"\r\nstyle=\"text-decoration:underline;\"\r\nonclick=\"login();return false;\">\u767b\u5f55\u540e\u8bc4\u8bba<\/a><\/span><\/div>\r\n<div><label for=\"cemail\">E-Mail<\/label><input class=\"textField\" id=\"cemail\" name=\"email\" type=\"text\" \/>\r\n<span style=\"color:#ccc;margin-left:5px;\" class=\"emailnotice\"><span>\u60a8\u5c06\u6536\u5230\u535a\u4e3b\u7684\u56de\u590d\u90ae\u4ef6<\/span><\/span>\r\n<\/div>\r\n<div><label for=\"chomepage\">\u5730\u3000\u5740<\/label><input class=\"textField\" id=\"chomepage\" name=\"homepage\" type=\"text\" \/><\/div>\r\n<\/fieldset>\r\n<fieldset style=\"margin:0;padding:0;border:none;display:none;\" id=\"fs_login\">\r\n<div><label for=\"cname\">\u7528\u6237\u540d<\/label><input class=\"textField\" id=\"username\" name=\"username\" type=\"text\"  tabindex=\"1\" \/>\r\n    <span style=\"color:#ccc;margin-left:5px;\" class=\"emailnotice\"><a href=\"#\" title=\"\u533f\u540d\u8bc4\u8bba\" style=\"text-decoration:underline;\" onclick=\"anoy();return false;\">\u533f\u540d\u8bc4\u8bba<\/a><\/span><\/div>\r\n<div><label for=\"password\">\u5bc6\u3000\u7801<\/label><input class=\"textField\" id=\"password\" name=\"password\" type=\"password\" value=\"\" tabindex=\"2\" \/><\/div>\r\n<\/fieldset>\r\n<div><textarea name=\"content\" rows=\"8\" tabindex=\"3\"><\/textarea><\/div>\r\n<div class=\"submit\">\r\n<input type=\"hidden\" name=\"login\" value=\"0\" \/>\r\n<input type=\"hidden\" name=\"postId\" value=\"46796393\" \/>\r\n<input type=\"hidden\" name=\"blogId\" value=\"4344005\" \/>\r\n<input type=\"hidden\" name=\"checksum\" value=\"304f51d288dc6b9ece23d4324dbaa15f\" \/>\r\n<input type=\"hidden\" name=\"name\" value=\"\" \/>\r\n<table>\r\n<tr>\r\n<td><input class=\"button\" name=\"addsub\" value=\"\u63d0\u4ea4\" id=\"submit_comment\" type=\"submit\" \/><\/td>\r\n<\/tr>\r\n<\/table>\r\n<\/div>\r\n<\/form>\r\n<iframe name=\"login_form\" style=\"display:none\" width=\"400px\"><\/iframe>");
login();
